/**
 * Created by Administrator on 2016/11/5.
 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

const store = new Vuex.Store({
	state: {
		imgUrl: 'http://weixin.gdncpjg.cn', //全局图片地址
		version: '1.0.0',//app版本信息

	},
	getters: {	
		head: state => state.head,
		audioLoadding: state => state.audioLoadding,
		detailPlayerFlag: state => state.detailPlayerFlag,
		showPlayer: state => state.showPlayer,
		isPlay: state => state.isPlay
	},
	mutations: {
		//获取资讯文件地址
		getFileLink: (state, str) => {
			state.fileLink = str;
		},
	},
	actions: {

	}
});

export default store
